package com.aistar.service.user;

import com.aistar.model.entity.Employee;
import com.aistar.model.entity.Employer;
import com.aistar.model.entity.User;

/**
 * @ClassName: LoginService
 * @author: LiuWenXiu
 * @date: 2021/10/16 10:01
 * @Description: TODO...
 */
public interface ILoginService {

    User judgeLogin(String username, String password);

    // 根据邮箱发送验证码
    Integer sendEmailCode(String email);

    Integer judgeLoginByEmail(String email, String code);

    // 根据用户id加载招聘者
    Employer loadEmployerByUserId(Integer userId);

    // 根据用户id加载求职者
    Employee loadEmployeeByUserId(Integer userId);


}
